export const STATUS_LABEL = {
  1: "待审核",
  11: "待审核",
  8: "议价",
  18: "议价",
  3: "被拒绝",
  32: "已关闭",
  14: "已关闭"
};

// 零担 整车 提货 送货 装货 卸货 区分整车/零担 保价
export const QUOTATION_COLUMN = [
  "less",
  "full",
  "pick",
  "deliver",
  "onLoad",
  "offLoad",
  "transportMode",
  "insure"
]

/** 个体司机报价-合单费用 */
export const COMBINE_SOLO_QUOTATION_COLUMN = [
  {
    label: "运费",
    name: "transport",
    type: null
  },
  {
    label: "装货费",
    name: "load",
    type: null
  },
  {
    label: "卸货费",
    name: "unload",
    type: null
  },
  {
    label: "合计",
    name: "quoteTotal",
    type: "total"
  }
]

export const COMBINE_QUOTATION_COLUMN = [
  {
    label: "合单运费",
    name: "transport",
    type: null
  },
  {
    label: "提货费",
    name: "pick",
    type: null
  },
  {
    label: "送货费",
    name: "deliver",
    type: null
  },
  {
    label: "装货费",
    name: "load",
    type: null
  },
  {
    label: "卸货费",
    name: "unload",
    type: null
  },
  {
    label: "保险费",
    name: "insure",
    type: null
  },
  {
    label: "税费",
    name: "tax",
    type: null
  },
  {
    label: "报价费用",
    name: "quoteTotal",
    type: "total"
  }
]

export const FEE_OPTIONS = [
  {
    value: 1,
    label: "上楼费"
  },
  {
    value: 2,
    label: "倒车费"
  },
  {
    value: 3,
    label: "包装费"
  },
  {
    value: 4,
    label: "仓储费"
  },
  {
    value: 5,
    label: "提货费"
  },
  {
    value: 6,
    label: "送货费"
  },
  {
    value: 7,
    label: "装货费"
  },
  {
    value: 8,
    label: "卸货费"
  },
  {
    value: 9,
    label: "叉车费"
  },
  {
    value: 10,
    label: "放空费"
  },
  {
    value: 11,
    label: "退返费"
  },
  {
    value: 12,
    label: "等待费"
  },
  {
    value: 13,
    label: "调车费"
  },
  {
    value: 14,
    label: "异常费"
  },
  {
    value: 15,
    label: "进仓费"
  },
  {
    value: 16,
    label: "其它"
  }
]

export default {
  props: ["value"],
  computed: {
    waybill () {
      return this.value || {};
    },
    customer () {
      return this.waybill?.customer || {};
    },
    consignee () {
      return this.waybill?.consignee || {};
    },
    fromAddress () {
      return this.waybill?.fromAddress || {};
    },
    fromContact () {
      return this.waybill?.fromContact || {};
    },
    fromTime () {
      return this.waybill?.fromTime;
    },
    toAddress () {
      return this.waybill?.toAddress || {};
    },
    toContact () {
      return this.waybill?.toContact || {};
    },
    toTime () {
      return this.waybill?.toTime;
    }
  }
};
